package com.ruoyi.web.controller.web;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.annotation.PassToken;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.website.domain.WebSort;
import com.ruoyi.website.service.IWebSortService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 网页分类Controller 首页展示
 * 
 * @author lzb
 * @date 2023-08-08
 */
@RestController
@RequestMapping("/home/web")
public class WebController extends BaseController
{
    @Autowired
    private IWebSortService webSortService;

    /**
     * 查询网页分类列表
     */
    @GetMapping("/list")
    public AjaxResult list(WebSort webSort)
    {
        List<WebSort> list = webSortService.selectWebSortList(webSort);
        return success(list);
    }
}
